package com.park.comm;

/* *
 * @Author zhanghaiwen
 * @Description 响应格式enum
 * @Date 14:38 2020/1/9
 * @Param
 * @Version 6.1.1
 * @return
 */
public enum ResultEnum implements ResultEnumInterface{

    SUCCESS(200,"成功"),
    SYS_ERROR(500,"系统异常，请稍后重试"),
    WX_CODE_EMPTY_ERROR(400,"wx登录 jsCode为空"),
    CAR_PLATE_EMPTY_ERROR(500,"请输入正确的车牌号"),
    CAR_PLATE_ORDERING_ERROR(500,"您的订单正在受理中，请耐心等待或联系附近停车管理员"),
    CAR_PLATE_BINDING_ERROR(500,"请先绑定车牌"),
    MER_USER_NAME_EMPTY_ERROR(500,"商户用户名不能为空"),
    MER_USER_PASSWORD_EMPTY_ERROR(500,"商户密码不能为空"),
    MER_USER_USER_EXIST_ERROR(500,"商户账号不存在"),
    MER_USER_PASSWORD_ERROR(500,"商户密码不正确"),
    MER_ORDER_NULL_ERROR(500,"操作订单不存在"),
    ADMIN_NAME_ERROR(500,"管理台账号不正确"),
    ADMIN_PASSWORD_ERROR(500,"管理台密码不正确"),
    APP_USER_OVER_TIME_LOGIN(501,"用户登录信息已经过期，重新登录"),
    USER_EXIST_ERROR(500,"已经绑定车牌了，请勿重复绑定"),
    CAR_PLATE_ERROR(500,"请输入正确的车牌"),

    PARK_NAME_EMPTY_ERROR(500,"停车场名称不能为空"),
    PARK_ADDRESS_EMPTY_ERROR(500,"经纬度不能为空"),
    PARK_FEE_EMPTY_ERROR(500,"请输入正确的工时费和人工费"),
    CANNOT_STOP_ERROR(500,"附近暂无有效停车场，如有疑问，请联系客服人员"),

    ;

    private Integer code;

    private String msg;


    ResultEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
